package tech.aistar.mapper;

import org.apache.ibatis.annotations.Select;
import tech.aistar.model.pojo.Product;
import tech.aistar.model.vo.ProductQueryVo;

import java.util.List;

public interface ProductMapper {

    @Select("select * from product")
    List<Product> findAll();

    //根据条件查询
    List<Product> findByConditional(ProductQueryVo productQueryVo);

    @Select("select * from product where id=#{id}")
    Product getById(Integer id);

}
